package com.yycx.module.bus.client.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.base.entity.EntityMap;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;

/**
 * 对账明细
 *
 * @author flyme
 * @date 2021-01-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_finance_details")
@TableAlias("bfd")
@ApiModel(value="BusFinanceDetails对象", description="对账明细")
public class BusFinanceDetails extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "financeDetailsId", type = IdType.ASSIGN_ID)
    private Long financeDetailsId;

    @ApiModelProperty(value = "对账表ID")
    private Long financeId;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "订单明细ID")
    private Long orderDetailsId;

    @ApiModelProperty(value = "单号")
    private String orderNo;

    @ApiModelProperty(value = "销售日期")
    private String saleDate;

    @ApiModelProperty(value = "部门名称")
    private String deptName;

    @ApiModelProperty(value = "业务员名称")
    private String saleManName;

    @ApiModelProperty(value = "购货方名称")
    private String customName;

    @ApiModelProperty(value = "药品名称")
    private String drugsName;

    private Integer customBondType;

    @ApiModelProperty(value = "规格")
    private String drugsSpec;

    @ApiModelProperty(value = "数量")
    private String saleNum;

    @ApiModelProperty(value = "价格")
    private BigDecimal salePrice;

    @ApiModelProperty(value = "销售金额")
    private BigDecimal saleAmount;

    @ApiModelProperty(value = "回款金额")
    private BigDecimal returnAmount;

    @ApiModelProperty(value = "回款日期")
    private String returnDate;

    @ApiModelProperty(value = "认款日期")
    private String renkuanDate;

    @ApiModelProperty(value = "资保金金额")
    private BigDecimal customBondAmount;

    @ApiModelProperty(value = "收款日期")
    private String takeDate;

    @ApiModelProperty(value = "资保金退款")
    private BigDecimal returnCustomBond;

    @ApiModelProperty(value = "退款日期")
    private String returnCustomBondDate;

    @ApiModelProperty(value = "应结算金额")
    private BigDecimal settleAmount;

    @ApiModelProperty(value = "已结算金额")
    private BigDecimal yesSettleAmount;

    @ApiModelProperty(value = "结算日期")
    private String settlePayDate;

    @ApiModelProperty(value = "未结算金额")
    private BigDecimal noSettleAmount;

    @ApiModelProperty(value = "批号")
    private String drugsLotNo;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private List<BusOrderDetails>  customReturnList;
    @TableField(exist = false)
    private List<EntityMap>   returnCustomBondList;
    @TableField(exist = false)
    private List<EntityMap>   settleList;



}
